﻿<%@ Control Language="C#" ClassName="OrderFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataUsername" runat="server" Text="Username:" AssociatedControlID="dataUsername" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUsername" Text='<%# Bind("Username") %>' MaxLength="200"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataUsername" runat="server" Display="Dynamic" ControlToValidate="dataUsername" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataTotalPrice" runat="server" Text="Total Price:" AssociatedControlID="dataTotalPrice" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTotalPrice" Text='<%# Bind("TotalPrice") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataTotalPrice" runat="server" Display="Dynamic" ControlToValidate="dataTotalPrice" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataTotalPrice" runat="server" Display="Dynamic" ControlToValidate="dataTotalPrice" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIsDisabled" runat="server" Text="Is Disabled:" AssociatedControlID="dataIsDisabled" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataIsDisabled" SelectedValue='<%# Bind("IsDisabled") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem><asp:ListItem Value="" Text="Pick ..." Enabled="False"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIsRemoved" runat="server" Text="Is Removed:" AssociatedControlID="dataIsRemoved" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataIsRemoved" SelectedValue='<%# Bind("IsRemoved") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem><asp:ListItem Value="" Text="Pick ..." Enabled="False"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDateCreate" runat="server" Text="Date Create:" AssociatedControlID="dataDateCreate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataDateCreate" Text='<%# Bind("DateCreate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataDateCreate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataDateCreate" runat="server" Display="Dynamic" ControlToValidate="dataDateCreate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUserCreate" runat="server" Text="User Create:" AssociatedControlID="dataUserCreate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUserCreate" Text='<%# Bind("UserCreate") %>' MaxLength="200"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDateModify" runat="server" Text="Date Modify:" AssociatedControlID="dataDateModify" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataDateModify" Text='<%# Bind("DateModify", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataDateModify" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataDateModify" runat="server" Display="Dynamic" ControlToValidate="dataDateModify" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUserModify" runat="server" Text="User Modify:" AssociatedControlID="dataUserModify" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUserModify" Text='<%# Bind("UserModify") %>' MaxLength="200"></asp:TextBox>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


